import request from '@/utils/request'
//申请列表
export function teamheadApplylists(params: any) {
    return request.get({ url: '/teamhead.teamhead_apply/lists', params })
}
//跟进
export function teamheadapplyStatus(params: any) {
    return request.post({ url: '/teamhead.teamhead_apply/status', params })
}
//团长等级
export function teamheadlevelLists() {
    return request.get({ url: '/teamhead.teamhead_level/lists' })
}
export function Delteamheadlevel(params: any) {
    return request.post({ url: '/teamhead.teamhead_level/del' , params})
}
export function Addteamheadlevel(params: any) {
    return request.post({ url: '/teamhead.teamhead_level/add' , params})
}
export function editteamheadlevel(params: any) {
    return request.post({ url: '/teamhead.teamhead_level/edit' , params})
}
export function teamheadlevelDetail(params: any) {
    return request.get({ url: '/teamhead.teamhead_level/detail' , params})
}

//团长列表
export function teamheadLists(params: any) {
    return request.get({ url: '/teamhead.teamhead/lists',params })
}
export function teamheadAdd(params: any) {
    return request.post({ url: '/teamhead.teamhead/add',params })
}
export function teamheadEdit(params: any) {
    return request.post({ url: '/teamhead.teamhead/edit',params })
}
export function teamheadDetail(params: any) {
    return request.get({ url: '/teamhead.teamhead/detail',params })
}
export function Delteamhead(params: any) {
    return request.post({ url: '/teamhead.teamhead/del',params })
}
//区域管理
export function areaLists(params: any) {
    return request.get({ url: '/teamhead.teamhead_area/lists',params })
}
export function areaDetail(params: any) {
    return request.get({ url: '/teamhead.teamhead_area/detail',params })
}
export function areaAdd(params: any) {
    return request.post({ url: '/teamhead.teamhead_area/add',params })
}
export function areaEdit(params: any) {
    return request.post({ url: '/teamhead.teamhead_area/edit',params })
}
export function areaDel(params: any) {
    return request.post({ url: '/teamhead.teamhead_area/del',params })
}
export function areaRegion(params: any) {
    return request.get({ url: '/teamhead.teamhead_area/region',params })
}
export function areaDistrict(params: any) {
    return request.get({ url: '/teamhead.teamhead_area/district',params })
}


// 团长信息记录
export function communityInfoList(params: any) {
    return request.get({ url: '/admin.auth.user/communityInfoList',params })
}
// 团长信息编辑
export function communityInfoEdit(params: any) {
    return request.get({ url: '/admin.auth.user/communityInfoEdit',params })
}
// 添加团长
export function communityInfoAdd(params: any) {
    return request.get({ url: '/admin.auth.user/communityInfoAdd',params })
}
// 团长信息详情
export function communityInfoDetail(params: any) {
    return request.get({ url: '/admin.auth.user/communityInfoDetail',params })
}
// 团长充值记录
export function rechargeList(params: any) {
    return request.get({ url: '/admin.auth.user/rechargeList',params })
}
// 团长充值记录
export function communityApplyList(params: any) {
    return request.get({ url: '/admin.auth.user/communityApplyList',params })
}
// 团长批量审核
export function communityApplyBatchExamine(params: any) {
    return request.post({ url: '/admin.auth.user/communityApplyBatchExamine',params })
}
// 团长审核
export function communityApplyExamine(params: any) {
    return request.post({ url: '/admin.auth.user/communityApplyExamine',params })
}


// 团长充值鸡蛋
export function incBalance2(params: any) {
    return request.post({ url: '/admin.egg.user_community/incBalance2',params })
}


// 团长扣减鸡蛋
export function decBalance2(params: any) {
    return request.post({ url: '/admin.egg.user_community/decBalance2',params })
}


// 团长信息记录&获取鸡蛋
export function newCommunityInfoList(params: any) {
    return request.get({ url: '/admin.auth.user/communityInfoListNew',params })
}


// 团长推广订单分页列表
export function getExtendOrder(params: any) {
    return request.get({ url: '/admin.shop.community/list',params })
}

// 团长收益明细分页列表
export function getIncomePageList(params: any) {
    return request.get({ url: '/admin.shop.community/getIncomePageList',params })
}
